home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3355 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: newsfeed.internetmci.com!panix!not-for-mail
  2. From: richk@panix.com (Rich Kus)
  3. Newsgroups: comp.unix.shell,comp.lang.c
  4. Subject: Re: slowing it down
  5. Date: 27 Jan 1996 21:03:09 -0500
  6. Organization: panix
  7. Message-ID: <4eelgt$mca@panix2.panix.com>
  8. References: <4ebh99$5q9@monmouth.edu> <9601270012.AA09395@dxmint.cern.ch>
  9. NNTP-Posting-Host: panix2.panix.com
  10.  
  11. In article <9601270012.AA09395@dxmint.cern.ch>,
  12. Dan Pop  <danpop@mail.cern.ch> wrote:
  13. >s0213031@moncol.monmouth.edu (RAJIV RODRIGUES) writes:
  14. >
  15. >>I ran a simple 'cat' on a DEC ALPHA (Digital Unix) to display a long (!) file.
  16. >>I'm looking for some way to slow down ( not a pager ) the listing, so that
  17. >>it scrolls at a comfortable speed. I tried a 'nice' at lowest priority with
  18. >>no discernable effect.
  19. >>
  20. >>Anyone know any other utilities I could use?
  21. >
  22. >The right tool for this job is a serial terminal.  You can control the
  23. >scrolling speed by playing with the baud rate :-)  Or by enabling smooth
  24. >scroll (if available).
  25. >
  26. >Another solution is to write your own 'cat', which waits a certain amount
  27. >of time before displaying a new line.  The usleep function (nonstandard,
  28. >but available on your platform) is all you need for the job.
  29. >
  30. >Dan
  31. >-- 
  32. >Dan Pop
  33. >CERN, CN Division
  34. >Email: danpop@mail.cern.ch 
  35. >Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  36.  
  37.  if you have access to perl try the following command.
  38.  
  39.  perl -e 'while (<>) { print; sleep 1 }' filename
  40.  
  41.  this will print 1 line a minute.
  42.  
  43.  richk
  44.  
  45.